import request from '@/utils/request'

// 查询对账批次明细列表
export function listDetail(query) {
  return request({
    url: '/property/detail/list',
    method: 'post',
    params: query
  })
}

// 查询对账批次明细详细
export function getDetail(id) {
  return request({
    url: '/property/detail/' + id,
    method: 'get'
  })
}

// 新增对账批次明细
export function addDetail(data) {
  return request({
    url: '/property/detail',
    method: 'post',
    data: data
  })
}

// 修改对账批次明细
export function updateDetail(row) {
  return request({
    url: '/property/detail/editCheckBatchDetail',
    method: 'post',
    data:row
  })
}
// 查询对账批次明细与对账交易流水是否一致
export function selectDetailByOrder(row) {
  return request({
    url: '/property/detail/selectDetailByOrder',
    method: 'put',
    data:row
  })
}

// 删除对账批次明细
export function delDetail(id) {
  return request({
    url: '/property/detail/' + id,
    method: 'delete'
  })

}
